package com.meida.paotui.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 收益表
 *
 * @author flyme
 * @date 2019-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_profit")
@TableAlias("profit")
@ApiModel(value="BusProfit对象", description="收益表")
public class BusProfit extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "profitId", type = IdType.ID_WORKER)
    private Long profitId;

    @ApiModelProperty(value = "用户Id")
    private Long userInfoId;

    @ApiModelProperty(value = "收益金额")
    private BigDecimal profitSum;

    @ApiModelProperty(value = "收益类型")
    private Integer profitType;

    @ApiModelProperty(value = "收益说明")
    private String profitExplain;

    @ApiModelProperty(value = "产生收益人id")
    private Long fromUserInfoId;

    @ApiModelProperty(value = "收益关联ID")
    private Long businessId;

    @ApiModelProperty(value = "收益状态")
    private Integer status;

    @ApiModelProperty(value = "收益方式")
    private String profitWay;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "1收益增加 2收益减少")
    private String type;

    @ApiModelProperty(value = "账户总额")
    private String balance;

}
